package main;

import growTree.GrowSimulation;

import java.awt.Dimension;

import javax.swing.JApplet;

import tree.Simulation;
import draw.DrawPanel;
import draw.GrowDrawPanel;

public class AplGrow extends JApplet {
	private GrowDrawPanel panel;
	private GrowSimulation sim;
	private KeyController keycontroller;

	public void init() {
		setSize(1000, 1000);

		sim = new GrowSimulation();
		//sim.startstop();
		panel = new GrowDrawPanel(sim);
		//keycontroller = new KeyController(sim, panel);

		panel.setFocusable(true);
		panel.requestFocus();
		panel.requestFocusInWindow();
		//panel.addKeyListener(keycontroller);

		sim.addObserver(panel);
		setContentPane(panel);
	}
}
